﻿using UnityEngine;
using System.Collections;
using UnityEditor;

namespace Titan.UI
{
    [CustomPropertyDrawer(typeof(MsgOption))]
    public class MsgOptionDrawer : PropertyDrawer
    {
        #region Public Attributes

        #endregion

        #region Private Attributes

        #endregion

        #region Public Methods

        #endregion

        #region Override Methods
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            EditorGUILayout.PropertyField(property.FindPropertyRelative("dataEvent"));
            EditorGUILayout.PropertyField(property.FindPropertyRelative("callEvent"));           
            property.serializedObject.ApplyModifiedProperties();
        }
        #endregion

        #region Private Methods

        #endregion

        #region Inner

        #endregion
    }
}
